package com.viphuli.app.tool.handler;

import java.util.List;

import com.viphuli.app.tool.adapter.HolidayLeaveTypeAdapter;
import com.viphuli.app.tool.bean.page.ArrangeTypeListPage;
import com.viphuli.app.tool.bean.part.ArrangeType;
import com.viphuli.app.tool.fragment.HolidayLeaveTypeDialogFragment;

public class HolidayLeaveTypeListResponseHandler extends MyBaseHttpResponseHandler<HolidayLeaveTypeDialogFragment, ArrangeTypeListPage> {

	@Override
	public void deal() {

		List<ArrangeType> arrangeTypeList = page.getArrangeTypeList();
		caller.getList().addAll(arrangeTypeList);
		HolidayLeaveTypeAdapter adapter = new HolidayLeaveTypeAdapter(caller.getList());
		caller.setAdapter(adapter);
		caller.getListview().setAdapter(adapter);

	}

}